package com.google.code.sant

import org.apache.tools.ant.Main
import java.util.regex.Pattern

object AntVersion {
	def antVersion = Main.getAntVersion
  
  /** Throw if running with incompatible Ant version */
  def checkVersion() {
    if (!antVersion.startsWith("Apache Ant version 1.7."))
    	throw new SantException("incompatible Ant version: " + Main.getAntVersion + ", 1.7.x needed")
  }
}
